package com.ssyc.student.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ssyc.common.glide.ImageUtil;
import com.ssyc.student.R;

import java.util.List;

/**
 * 学生端--个人信息展示的界面
 * Created by Administrator on 2018/5/22 0022.
 */

public class StPersonInfoRvAdatpter extends BaseQuickAdapter<String, BaseViewHolder> {
    private Context context;

    public StPersonInfoRvAdatpter(Context context, int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        //头像
        ImageView iv = helper.getView(R.id.iv_head);
        ImageUtil.displayImage(context, iv, item);
    }
}
